#ifndef CUIMAKERRENDER_H
#define CUIMAKERRENDER_H
#include <QWidget>
#include <WndDesktop.h>
#include <UIDefine.h>

#include <hgesprite.h>

class CWndDesktop;
class hgeSprite;
class CUIMakerRender : public QWidget
{
	Q_OBJECT

signals:
	void sgMouseMove( QMouseEvent* event );
	void sgMousePressEvent( QMouseEvent* event );
	void sgMouseReleaseEvent( QMouseEvent* event );
	void sgHeartBeat();
public:
	CUIMakerRender(QWidget *parent = NULL);
	~CUIMakerRender();
	QPaintEngine* paintEngine() const;
protected:
	virtual void paintEvent( QPaintEvent * );
	virtual void mouseMoveEvent( QMouseEvent* event );
	virtual void mousePressEvent( QMouseEvent * event );
	virtual void mouseReleaseEvent( QMouseEvent * event );
public slots:
	void slHeartBeat();
private:
	CWndBase*	m_pCursorInWnd;

	int			m_nPrevX;
	int			m_nPrevY;
};

//extern CWndDesktop* g_pDesktop;
#endif // CUIMAKERRENDER_H
